package com.yusiji.sqlSession;

import com.yusiji.pojo.Configuration;
import com.yusiji.pojo.MapperStatement;

import java.util.List;

public interface Executor {
    public <E> List<E> query(Configuration configuration, MapperStatement mapperStatement,Object... params) throws  Exception;

    public Integer update(Configuration configuration, MapperStatement mapperStatement,Object... params) throws  Exception;

    public Integer insert(Configuration configuration, MapperStatement mapperStatement,Object... params) throws  Exception;

    public Integer delete(Configuration configuration, MapperStatement mapperStatement,Object... params) throws  Exception;
}
